Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix resource paths for Ignition Gazebo #511

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

Nibanovic
Copy link
Contributor

Overview

Author: Nikola Banović

Issue

When depending on depthai-descriptions package, Ignition Gazebo cannot find mesh files.

The package:// syntax for resolving the model path does not allow Ignition to automatically find the required resources.

<geometry>
    <mesh filename="package://depthai_descriptions/urdf/models/${model}.stl" />
</geometry>

changing this to file://$(find my_pkg) syntax allows this to happen automatically

<geometry>
    <mesh filename="file://$(find depthai_descriptions)/urdf/models/${model}.stl" />
</geometry>

Changes

ROS distro: humble

  • base_macro.urdf.xacro: changed path to mesh file

Optional changes

I've noticed that the environment hooks present only add the GAZEBO_RESOURCE_PATH, while Ignition Gazebo for humble uses IGN_GAZEBO_RESOURCE_PATH. I've added hooks for that in the files below.

  • depthai_descriptions.dsv.in
  • depthai_descriptions.sh.in

with 'package://' syntax, mesh does not get automatically uploaded to gazebo. replaced with 'file://' syntax
@Serafadam Serafadam merged commit 0ef4b38 into luxonis:humble Mar 15, 2024
5 of 6 checks passed
muritane pushed a commit to StoglRobotics-forks/depthai-ros that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants